package goods

import goods1 "shop/internal/models/goods"

func GoodsTypes() ([]goods1.GoodsTypes, error) {
	goodsTypes, err := new(goods1.Types).GoodsTypes()
	if err != nil {
		return nil, err
	}

	return goodsTypes, nil
}

func GetTypesLervel(location int64) (*[]goods1.Types, error) {
	return new(goods1.Types).GoodsTypeInfoByLv(location)
}
